import request from '@/utils/request'
const api_name = '/eduservice/collect'
export default {
  doCollect(targetId, targetType) {
    return request({
      url: `${api_name}/doCollect`,
      method: 'post',
      params: {targetId: targetId, targetType: targetType}
    })
  },
  getList(targetType) {
    return request({
      url: `${api_name}/getList`,
      method: 'get',
      params: {
        targetType: targetType
      }
    })
  }
}
